package com.liu.spring.mapper;


import com.liu.proxy.core.annotation.Param;
import com.liu.proxy.core.annotation.Select;
import com.liu.spring.domain.User;

import java.util.List;

/**
 * @author LIU
 * @version 1.0
 * @description TODO
 * @date 2024/1/25 10:06
 */
public interface UserMapper {

    @Select("select * from t_user")
    public List<User> list();

    @Select("select * from t_user where name = #{name} and age > #{age}")
    public List<User> getUser(@Param("name") String name, @Param("age") Integer age);

    @Select("select * from t_user where id = #{id}")
    public User getUserById(@Param("id") Integer id);
}
